<template>
    <Header left-arrow title="视频预览" />
    <!-- <iframe :src="src" height="100%" width="100%"></iframe> -->
    <video :src="src" autoplay controls></video>
</template>

<script lang="ts"  setup>
import { ref } from 'vue';
import { useRoute } from 'vue-router';
import Header from '@/components/Header/index.vue';

const src = ref('');
const route = useRoute();
if (route.query) {
    src.value = route.query.url as string;
}
</script>

<style lang="scss" scoped>
iframe,
video {
    width: 100vw;
    height: 100vh;
    background-color: #000000;
}
</style>
